package com;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : ph.li
 * @date : 2023/7/29 13:22
 */
@SpringBootApplication
@RestController
@Slf4j
@Api(value = "测试请求")
@MapperScan(basePackages = "com.ahui")
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class,args);
    }

    @ApiOperation(value="测试请求",httpMethod ="GET")
    @GetMapping("/test")
    public String test(Integer integer){
        log.info("请求hi行了，嘿嘿嘿");
        log.debug("请求hi行了，嘿嘿嘿");
        return integer==null ? "hello啊" :integer.toString();
    }
}
